package com.imooc.springmvc2.annotation;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.lang.annotation.*;

/**
 * 自定义 组合注解:含有@Configuration,@ComponentScan两个注解
 * 组合注解:被注解的注解称之为组合注解
 * 元注解:可以注释到别的注解上的注解
 * Created by joe on 16-8-11.
 */
@Target(ElementType.TYPE)//标示为类注解
@Retention(RetentionPolicy.RUNTIME)//运行时起作用
@Documented
@Configuration//组合注解的元注解
@ComponentScan//组合注解的元注解
public @interface WiselyConfiguration {

    String[] value() default {};//覆盖value参数
}
